package ua.kharkov.knure.dereza.summarytask4.core;

/**
 * Contains common constants
 * 
 * @author dereza
 *
 */
public interface Constants {
	
	public static final String APPLICATION_NAME = "/SummaryTask4/";
	
	// commands
	public static final String COMMAND_ADMIN_LIST_CARDS = "/controller?command=adminListCards";
	public static final String COMMAND_CLIENT_LIST_CARDS = "/controller?command=clientListCards";
	public static final String COMMAND_LOGOUT = "/controller?command=logout";
	
	// pages
	public static final String PAGE_LOGIN = "/WEB-INF/jsp/login.jsp";
	public static final String PAGE_SETTINGS = "/WEB-INF/jsp/settings.jsp";
	public static final String PAGE_ERROR_PAGE = "/WEB-INF/jsp/errorPage.jsp";
	public static final String PAGE_CLIENT_LIST_CARDS = "/WEB-INF/jsp/client/clientListCards.jsp";
	public static final String PAGE_ADMIN_LIST_CARDS = "/WEB-INF/jsp/admin/adminListCards.jsp";
		
	// roles
	public static final String ADMIN = "admin";
	public static final String CLIENT = "client";
	
	// statuses of card
	public static final String STATUS_LOCKED = "locked";
	public static final String STATUS_UNLOCKED = "unlocked";
	
	// resources
	public static final String RESOURCES_CSS_BACKGROUND = APPLICATION_NAME + "img/";
	public static final String RESOURCES_CSS = APPLICATION_NAME + "styles/";
	public static final String RESOURCES_JS = APPLICATION_NAME + "js/";
	
	// velocity
	public static final String VELOCITY_FILE_TEMPLATE_FOR_ADMIN = "adminTemplate.vm";
	public static final String VELOCITY_FILE_TEMPLATE_FOR_CLIENT = "clientTemplate.vm";
	
	// email settings
	public static final String MAIL_SMTP_HOST = "smtp.gmail.com";
	public static final String MAIL_SMTP_SOCKETFACTORY_PORT =  "465";
	public static final String MAIL_SMTP_SOCKETFACTORY_CLASS = "javax.net.ssl.SSLSocketFactory";
	public static final String MAIL_SMTP_AUTH = "true";
	public static final String MAIL_SMTP_PORT =  "465";
	public static final String MAIL_ADRESS = "payment.systems24@gmail.com";
	public static final String MAIL_USERNAME = "payment.systems24";
	public static final String MAIL_PASSWORD = "EDUARD_activex27";
	public static final String MAIL_ADMIN = "activecs@mail.ru";
	
	// I18nTag default locale
	public static final String LOCALE_DEFAULT = "en_US";
	public static final String LOCALE_RU = "ru_RU";
	public static final String LOCALE_EN = "en_US";
}
